﻿CREATE TABLE [dbo].[TB_Usuario] (
    [Sysid]         INT          IDENTITY (1, 1) NOT NULL,
	[CodigoFuncionario]      VARCHAR (50)  NULL,
    [NomUsuario]    VARCHAR (50) NULL,
    [SaldoAsignado] INT          NULL,
    [Saldo]         INT          NULL,
    [Password]      VARCHAR (50) NULL,
    [Nombre]        VARCHAR (50) NULL,
    [Activo]        BIT          NULL,
    [Apellido] VARCHAR(50) NULL, 
    [Rut] VARCHAR(10) NULL, 
    [Email] VARCHAR(100) NULL, 
    [AreaUsuario] INT NULL, 
    [EsAdministrador] BIT NULL, 
    [FechaCreacion] SMALLDATETIME NULL, 
    [SysUsuarioCreacion] INT NULL, 
    [FechaModificacion] SMALLDATETIME NULL, 
    [SysUsuarioModificacion] INT NULL, 
    [Revision] INT NULL, 
    CONSTRAINT [PK_TB_Usuario] PRIMARY KEY CLUSTERED ([Sysid] ASC)
);

